//
//  BabyHelperAppDelegate.h
//  BabyHelper
//
//  Created by  thomas on 11-2-11.
//  Copyright __MyCompanyName__ 2011. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "OAuthEngine.h"
#import "OAToken.h"
#import "PhotoManager.h"

@interface BabyHelperAppDelegate : NSObject <UIApplicationDelegate, UITabBarControllerDelegate> {
    UIWindow *window;
    UITabBarController *tabBarController;
	NSString *appKey;
	NSString *appSecret;
	NSString *tokenKey;
	NSString *tokenSecret;
	NSString *verifier;
	NSString *response;
	NSString *bindStatus;
	NSString *bindName;
	OAuthEngine	*_engine;
}

@property (nonatomic, retain) IBOutlet UIWindow *window;
@property (nonatomic, retain) IBOutlet UITabBarController *tabBarController;
@property (nonatomic, retain) NSString *appKey;
@property (nonatomic, retain) NSString *appSecret;
@property (nonatomic, retain) NSString *tokenKey;
@property (nonatomic, retain) NSString *tokenSecret;
@property (nonatomic, retain) NSString *verifier;
@property (nonatomic, retain) NSString *response;
@property (nonatomic, retain) NSString *bindStatus;
@property (nonatomic, retain) NSString *bindName;
@property (nonatomic, retain) OAuthEngine *_engine;

- (void)parseTokenKeyWithResponse:(NSString *)response;

- (void)saveDefaultKey;
-(void)loadDefaultKey;
@end
